﻿using RTracker.Models.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace RTracker.Areas.Recruitment.Models.CandidateDrive
{
    public class GCandidateDrive
    {
        // members declaration
        private List<CCandidateDrive> _lstCandidateDrive;
        private CCandidateDrive _oCCandidateDrive;                              // to store object of CCandidateDrive
        private CStatus _oCStatus;                          // to store object of CStatus
        private CPaging _oCPaging;
        private int m_nId;                                // to store organization id in case of save to return it to view. Based upon that we will refresh grid.

        // Default Constructor
        public GCandidateDrive()
        {
            _lstCandidateDrive = null;
            _oCCandidateDrive = null;
            _oCStatus = null;
            _oCPaging = null;
        }

        // parameterized constructor
        public GCandidateDrive(List<CCandidateDrive> lstCandidateDrive, CCandidateDrive oCCandidateDrive, CStatus oCStatus, CPaging oCPaging)
        {
            _lstCandidateDrive = lstCandidateDrive;
            _oCCandidateDrive = oCCandidateDrive;
            _oCStatus = oCStatus;
            _oCPaging = oCPaging;
        }

        #region  "Properties"


        public List<CCandidateDrive> LstCandidateDrive
        {
            get { return _lstCandidateDrive; }
            set { _lstCandidateDrive = value; }
        }



        /// <summary>
        /// Used to store object of CCandidateDrive
        /// </summary>
        public CCandidateDrive CandidateDrive
        {
            get { return _oCCandidateDrive; }
            set { _oCCandidateDrive = value; }
        }


        /// <summary>
        /// Used to store object of CStatus
        /// </summary>
        public CStatus Status
        {
            get { return _oCStatus; }
            set { _oCStatus = value; }
        }

        /// <summary>
        /// Used to store object of CPaging
        /// </summary>
        public CPaging Paging
        {
            get { return _oCPaging; }
            set { _oCPaging = value; }
        }


        /// <summary>
        /// Used to store organization id
        /// </summary>
        public int Id
        {
            get { return m_nId; }
            set { m_nId = value; }
        }

        #endregion
    }
}